package campus.aiit.ssl.dao;

import campus.aiit.ssl.domain.model.Room;
import campus.aiit.ssl.manage.custom.dao.BaseDao;

import java.util.List;
import java.util.Map;

/**
 * @author ihaokun
 * @date 2019/12/1 16:50
 */
public interface RoomDao extends BaseDao<Room> {
  @Override
  Room selectByPrimaryKey(Long id);

  @Override
  int deleteByPrimaryKey(Long id);

  @Override
  int insertSelective(Room record);

  @Override
  int updateByPrimaryKeySelective(Room record);

  Room[] selectArrayByForeignKey(long buildingId);

  Room[] selectArrayByForeignKeyFloor(long buildingId, Long floor);

  Room[] selectArrayByForeignKeyBlock(long blockId);

  int addRoomType(Map map);

  int delRoomType(long id);

  int updateRoomType(Map map);

  List<Map<String,Object>> getRoomTypeList();
}